package com.quincy.controller;

import com.quincy.service.BgmService;
import com.quincy.utils.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Quincy on 2018/5/26.
 */
@RestController

@Api(value="背景音乐业务的接口", tags= {"背景音乐业务的controller"})
@RequestMapping("/bgm")
public class BgmController {

    @Autowired
    private BgmService bgmService;

    @ApiOperation(value="获取背景音乐列表", notes="获取背景音乐列表的接口")
    @PostMapping("/list")
    public JsonResult list(){
        return JsonResult.ok(bgmService.queryBgmList());
    }
}
